package xiangmu.schoolpaper.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xiangmu.schoolpaper.pojo.VO.DataCompareVO;
import xiangmu.schoolpaper.result.Result;
import xiangmu.schoolpaper.service.DataCompareService;

import java.util.List;

@RestController
@RequestMapping
@Slf4j
@Tag(name="论文统计数据与对应模板对比接口")
public class DataCompareController {
    @Autowired
    private DataCompareService dataCompareService;
    @GetMapping("/teacher/templateConstrast")
    public Result getDataCompareResult(Integer paperId,Integer templateId,Integer teacher) {
        log.info("获取论文统计数据与对应模板");
        List<DataCompareVO> list =dataCompareService.getDataCompare(paperId,templateId,teacher);
        return Result.success(list);



    }


}
